
<%@ page import="mms.Multimedia" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" /> 
        <g:set var="entityName" value="${message(code: 'multimedia.label', default: 'Multimedia')}" />
        <title><g:message code="default.show.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.show.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:if test="${multimediaInstance.mediaType =='video'}">
            <g:javascript src="flowplayer.js" />

           
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>
                    
                   
                     <tr class="prop">
                            <td valign="top" class="name"><g:message code="multimedia.url.label" default="Url" /></td>
                            
                            <td valign="top" class="value">
                            <g:if test="${multimediaInstance.mediaType =='video'}">
                                <a  
                                href="${multimediaInstance.url}"
                                style="display:block;width:520px;height:330px"  
                                id="player"> 
                                </a> 
                                 <script>
                                    flowplayer("player", "/js/flowplayer-3.2.7.swf" );
                                    </script>
                            </g:if>
                            <g:else>
                              
                            </g:else>
                         
                            </td>
                            
                        </tr>
                             <tr class="prop">
                            <td valign="top" class="name"><g:message code="multimedia.preview.label" default="预览图" /></td>
                            
                            <td valign="top" class="value">
                                <img src="${multimediaInstance.preview}" border=0 alt="">
                            </td>
                            
                        </tr>

                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="multimedia.path.label" default="Path" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: multimediaInstance, field: "path")}</td>
                            
                        </tr>
                    
                       
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="multimedia.mediaType.label" default="Media Type" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: multimediaInstance, field: "mediaType")}</td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                 &nbsp;&nbsp;
            </div>
        </div>
    </body>
</html>
